package com.example.qihuibao.dao

import androidx.room.*
import com.example.qihuibao.bean.*

@Dao
interface FeesInfoDao {
    @Query("SELECT * FROM FeesInfo WHERE CantID IN (:field_canteenId) and MealID IN (:field_mealId)")
    fun queryInId(field_canteenId: String, field_mealId: String): RspQueryFeesBean?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun save(bean: RspQueryFeesBean) : Long
//
////    @Insert
//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun saveList(users: List<UserInfo>) : List<Long>?
//
    @Query("SELECT * FROM FeesInfo")
    fun queryAll(): List<RspQueryFeesBean>?
//
//    @Delete
//    fun delete(userInfo: UserInfo)
//
    @Query("DELETE FROM FeesInfo")
    fun deleteAll()
}